﻿using System;
using System.Windows.Media.Media3D;
using HelixToolkit.Wpf;

namespace GameBoard
{
    internal class CubeVisual : CubeVisual3D, IVisual, ITerrainFeature
    {
        bool _belongsToMoveablePicture = false;
        public bool BelongsToMoveablePicture
        {
            get { return _belongsToMoveablePicture; }
        }
        public void PopulateVisualData(BaseVisualData theData)
        {
            _belongsToMoveablePicture = theData.BelongsToMoveablePicture;
            FactoryID = theData.FactoryID;

            var cubeData = theData as CubeVisualData;
            Center = cubeData.Center;
            Height = cubeData.Height;
            Length = cubeData.Length;
            Width = cubeData.Width;
            Material = cubeData.Material;
            Transform = cubeData.Transform;
            IsSolid = !cubeData.IsNotSolid;
        }
        public bool IsSolid
        {
            get;
            set;
        }
        public ModelVisual3D VisualElement
        {
            get { return this; }
        }




        public Guid FactoryID
        {
            get;
            set;
        }
    }
}